<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../assets/lib/layui/css/layui.css">

    <link rel="stylesheet" href="../assets/css/article/shancu.css">
</head>

<body>
    <div class="layui-card">
        <div class="layui-card-header">文章列表</div>
        <div class="layui-card-body">
            <!-- 1表单 -->
            <form class="layui-form" action="" id="A">
                <div class="layui-form-item">
                    <div class="layui-inline">

                        <div class="layui-input-inline" style="width: 100px;">
                            <select id="select" name="city" lay-verify="">
                                
                            </select>

                        </div>

                        <div class="layui-input-inline" style="width: 100px;">
                            <select  id="AA"  name="city" lay-verify="">
                                <option value="">选择状态</option>
                                <option value="010">已发布</option>
                                <option value="021">草稿</option>
                           
                            </select>

                        </div>
                    </div>

                    <div class="layui-inline">

                        <div class="layui-input-inline" style="width: 100px;">
                            <button class="layui-btn" lay-submit lay-filter="formDemo">筛选</button>
                        </div>
                    </div>

                </div>

            </form>
            <!-- 2表格 -->
            <table class="layui-table">
                <colgroup>
                    <col width="35%">
                    <col width="17%">
                    <col width="17%">
                    <col width="17%">
                    <col>
                </colgroup>
                <thead>
                    <tr>
                        <th>文章标题</th>
                        <th>分类</th>
                        <th>发布时间</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>


                </tbody>
            </table>
            <!-- 3分页 -->

            <div id="page"></div>
        </div>
    </div>

    <script type="text/html" id="aa">
    {{each data item}}
    <tr>
        <td> {{item.title}}</td>
        <td>{{item.cate_name}}</td>
        <td>{{item.pub_date}}</td>
        <td>{{item.state}}</td>
        <td><button type="button" class="layui-btn">编辑</button>
           <button type="button" class="layui-btn">删除</button>
       </td>
    </tr>
    {{/each}}
</script>

<script type="text/html" id="dd">
    <option value="">分类</option>
    {{each data item}}                     
 <option value="010">{{item.name}}</option>                      
{{/each}}
</script>

    <script src="../assets/lib/jquery.js"></script>
    <script src="../assets/lib/layui/layui.all.js"></script>
    <script src="../assets/lib/template-web.js"></script>
    <script src="../assets/js/comm.js"></script>
    <script src="../assets/js/article/shancu.js"></script>
</body>

</html>